import React, {FC, useState} from 'react';
import {View, StyleSheet} from 'react-native';
import QuickLogin from './components/QuickLogin';
import InputLogin from './components/InputLogin';
type PropsType = {};
const Login: FC<PropsType> = () => {
  const [loginType, setLoginType] = useState<'quick' | 'input'>('quick');
  return (
    <View style={styles.root}>
      {loginType === 'quick' ? (
        <QuickLogin setLoginType={setLoginType} />
      ) : (
        <InputLogin setLoginType={setLoginType} />
      )}
    </View>
  );
};

const styles = StyleSheet.create({
  root: {
    width: '100%',
    height: '100%',
    backgroundColor: 'white',
    flexDirection: 'column',
    alignItems: 'center',
  },
  txt: {
    fontSize: 18,
    color: '#333',
    fontWeight: 'bold',
  },
});
export default Login;
